package com.mainwood.member.controller;

import com.mainwood.common.utils.R;
import com.mainwood.member.feign.CouponFeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("member")
public class CounponFeignControler {
    @Autowired
    private CouponFeignService couponFeignService;

    @GetMapping("coupon/list")
    public R list(@RequestParam Map<String, Object> params){
        return couponFeignService.list(params);
    }
}
